﻿using System;


namespace epicenter2010.Aggregates
{
	/// <summary>
	/// bstack @ 06/06/2010
	/// Address value object
	/// </summary>
	public class Address
	{
		/// <summary>
		/// Address 1
		/// </summary>
		public readonly string Address1;

		/// <summary>
		/// Address 2
		/// </summary>
		public readonly string Address2;

		/// <summary>
		/// State
		/// </summary>
		public readonly string State;


		/// <summary>
		/// Ctor
		/// </summary>
		/// <param name="address1"></param>
		/// <param name="address2"></param>
		/// <param name="state"></param>
		public Address(
			string address1,
			string address2,
			string state)
		{
			epicenter2010.Common.DBCChecker.RequireArgumentNotEmpty("address1", address1);
			epicenter2010.Common.DBCChecker.RequireArgumentNotEmpty("state", state);

			this.Address1 = address1;
			this.Address2 = address2;
			this.State = state;
		}
	}
}
